package com.thread.queuelog;

public class LogImpl implements Log{
	NodeList<String> logs= new NodeList<String>();
	private int totalSize = 0;
	
	@Override
	public void addLog(String log) {
		logs.add(log);
	}
	
	@Override
	public void outLog() {
		System.out.println(logs.pop()+" ->"+(++totalSize));
	}

}
